package com.example.livereplay.common.validator;

import com.example.livereplay.exception.SysBusinessCode;
import com.example.livereplay.exception.SysBusinessException;
import org.springframework.util.CollectionUtils;

import java.util.List;

public class BaseValidator {
    public static void deleteValidate(List<String> idList) {
        if (CollectionUtils.isEmpty(idList)) {
            throw new SysBusinessException(SysBusinessCode.ID_LIST_EMPTY_ERROR);
        }
    }
}
